package com.twoGroup.boot.service;


import com.twoGroup.boot.pojo.*;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public interface CommonService {
    Page<Shop> queryShop(String shopName, Integer pageNow, Integer pageSize);

    Page<GoodsAndShopAndGoodsTypeAndGoodsBrand> queryGoods(String goodsName, Integer pageNow, Integer pageSize);

    List<Map<String, Object>> queryForGoodsByBrand(int goodsBrandId);

    List<GoodsBrand> queryForAllGoodsBrand();

    List<GoodsType> queryForAllType();

    List<Map<String, Object>> queryForGoodsByTypeId(int typeId);

    Page<Map<String,Object>> queryForAllByPage(int pageNow, int pageSize);
}
